package com.lihuu.easytext.analysis.factory;

import com.lihuu.easytext.analysis.api.Analyzer;

import java.util.Collections;
import java.util.List;

/**
 * @author lihu <1449488533qq@gmail.com>
 * @since 2021/5/5 20:54
 */
public class AnalyzerFactory {
    public static List<String> getSupportedNames() {
        ///        return List.of(ColemanAnalyzer.NAME, FleschKincaid.NAME);
        return Collections.emptyList();
    }

    public static Analyzer getAnalyzer(String name) {
        /*return switch (name) {
            case ColemanAnalyzer.NAME -> new ColemanAnalyzer();
            case FleschKincaid.NAME -> new FleschKincaid();
            default -> throw new IllegalArgumentException("analyzer not found");
        };*/

        return null;
    }
}
